﻿//=====================================================================================================
// LocalizationLibrary
// The Localization Library is a collection of reusable software components that provide 
// support for localization. This library enables you to localize WPF, Silverlight and WP7 applications.
// (http://localizationlibrary.codeplex.com)
//=====================================================================================================
// Author: Nicola Gallo (Website: www.nicola.gallo.name, Email: nicolagmt@hotmail.it) 
//=====================================================================================================

namespace ReflectionStudio.LocalizationLibrary
{
    //.NET References
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// Console's extension.
    /// </summary>
    internal static class ConsoleExtended
    {
        //Methods

        /// <summary>
        /// Writes the text representation of the specified object to the standard output stream using the specified format information.
        /// </summary>
        /// <param name="message">Text to write.</param>
        public static void Write(String message)
        {
#if ! SILVERLIGHT && WINDOWS_PHONE
            Console.Write("[LocalizationLibrary][{0}] {1}",DateTime.Now, message);
#endif
        }

        /// <summary>
        /// Writes the text representation of the specified object, followed by the current line terminator, to the standard output 
        /// stream using the specified format information.
        /// </summary>
        /// <param name="message">Text to write.</param>
        public static void WriteLine(String message)
        {
#if ! SILVERLIGHT && WINDOWS_PHONE
            Console.WriteLine("[LocalizationLibrary][{0}] {1}", DateTime.Now, message);
#endif
        }
    }
}